package com.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;

/**
 * @Classname MySelfRule
 * @Description TODO
 * @Date 2024/8/2 9:56
 * @Created by pc
 */
public class MySelfRule {
    @Bean
    public IRule myRule(){
        return new RandomRule();  // 负载均衡改为随机
    }
}
